//
//  KSImageSelectItem.swift
//  ANOASTORE
//
//  Created by hudan on 2025/11/18.
//  Copyright © 2025 zwb. All rights reserved.
//

import UIKit
 
class KSImageSelectItem: KSFormHItem {
    var imageUtil: KSImageSelectUtil? {
        willSet {
            if newValue != nil {
                imageUtil?.removeFromSuperview()
            }
        }
        didSet {
            if let view = imageUtil {
                addSubview(view)
                view.snp.makeConstraints { make in
                    make.edges.equalToSuperview()
                }
            }
        }
    }
 
    convenience init(appearance: KSFormBaseAppear? = KSFormBaseAppear()) {
        self.init(title: "", appearance: appearance)
        self.textView.isHidden = true
        self.assistBtn.isHidden = true
        self.setLineHidden(true)
        self.backgroundColor = .clear
        
        
    }
}
